package com.youlai.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.model.entity.CarAd;
import com.youlai.system.model.form.AdForm;
import com.youlai.system.model.form.AuthForm;
import com.youlai.system.model.vo.CarAdPageVO;
import com.youlai.system.model.vo.UserImportVO;
import com.youlai.system.model.vo.UserInfoVO;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * 用户对象转换器
 *
 * @author haoxr
 * @since 2022/6/8
 */
@Mapper(componentModel = "spring")
public interface CarAdConverter {


    CarAdPageVO toPageVo(CarAdPageVO bo);

    Page<CarAdPageVO> toPageVo(Page<CarAdPageVO> bo);

    AuthForm entity2Form(CarAd entity);

    @InheritInverseConfiguration(name = "entity2Form")
    CarAd form2Entity(AdForm entity);

}
